package com.uyayo.cms.service;

import com.uyayo.cms.entity.CmsAd;
import com.uyayo.cms.model.CmsAdCondition;
import com.uyayo.framework.pagehelper.pojo.PageBean;

import java.util.List;

public interface CmsAdService {


	CmsAd getAdById(Long id) throws Exception;

	List<CmsAd> selectAd(CmsAdCondition cmsAdCondition);

	PageBean<CmsAd> selectAdByPaging(Integer page, Integer rows, String sort, String order, CmsAdCondition cmsAdCondition);

	int createCmsAd(CmsAd cmsAd);

	CmsAd selectOne(CmsAd cmsAd);

	int updateAd(CmsAd cmsAd);

	int deleteAd(Integer id);

}
